SGSetMaximumRecordTime
You can limit the duration of a record operation by calling theSGSetMaximumRecordTime
function. You specify the time limit as an exact number of Macintosh system ticks (each is approximately a sixtieth of a second). The most efficient technique for monitoring this time limit is to examine the result code from theSGIdle
function, which is described on page 5-36. When the time limit expires, the sequence grabber component sets that result code tograbTimeComplete
.
pascal ComponentResult SGSetMaximumRecordTime (SeqGrabComponent s, unsigned long ticks);
s
- Specifies the component instance that identifies your connection to the sequence grabber component. You obtain this value from the Component Manager's
OpenDefaultComponent
orOpenComponent
function.ticks
- Specifies the maximum duration for the record operation, in system ticks. Set this parameter to 0 to remove the time limit from the operation.
DESCRIPTION
By default, there is no time limit on a record operation. If you do not set a limit, a record operation will run until it exhausts the Operating System resources or you call theSGStop
function (described on page 5-38). Memory and disk space are the two major limiting factors.You must call the
SGSetMaximumRecordTime
function before you start the record operation.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help